package com.farmer.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Collection;
import java.util.Set;

import lombok.Data;
//import org.springframework.security.core.GrantedAuthority;
//import org.springframework.security.core.userdetails.UserDetails;

/**
 * @TableName admin
 */
@TableName(value ="admin")
@Data
public class Admin implements Serializable{
    private Integer id;

    private String username;

    private String password;

    private String name;

    private String avatar;

    private String role;

    private String phone;

    private String email;

    private Integer status;
    //角色信息
    private Set<Role> roleSet;


////权限信息
//    private Set<String> perms;
    private static final long serialVersionUID = 1L;

}